package stdio.costa.imoca.converter;

import stdio.costa.imoca.model.Receiver;

public class WeiboUser2Receiver {
	public static Receiver convert(weiboclient4j.model.User user) {
		if (user == null) {
			return null;
		}
		Receiver receiver = new Receiver();
		receiver.setName(user.getScreenName());
		receiver.setProvince(user.getProvince());
		receiver.setCity(user.getCity());
		receiver.setDetail(user.getLocation());
		receiver.setWeiboUid(user.getId() + "");

		return receiver;
	}
}
